using System;

namespace Webshop20.Domain.Shared.Payment.Core
{
    [Serializable]
    public class CreditCard : PaymentBase, IPayment
    {
        public virtual string Number { get; set; }
        public virtual string Owner { get; set; }
        public virtual int ExpirationMonth { get; set; }
        public virtual int ExpirationYear { get; set; }

        public virtual DateTime GetBillingTerm(DateTime orderDate)
        {
            var billingTerm = new DateTime(orderDate.Ticks);
            return billingTerm.AddDays(21);
        }
    }
}